package com.explorx.sns.puma.im.core.dal.dao;

import com.explorx.sns.puma.im.core.dal.entity.PrivateMessageEntityExample;
import com.explorx.sns.puma.im.core.dal.entity.PrivateMessageEntity;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface PrivateMessageEntityMapper {
    int deleteByPrimaryKey(@Param("id") Long id, @Param("senderId") Long senderId, @Param("cid") Long cid, @Param("messageId") Long messageId);

    int insert(PrivateMessageEntity record);

    int insertSelective(PrivateMessageEntity record);

    List<PrivateMessageEntity> selectByExample(PrivateMessageEntityExample example);

    PrivateMessageEntity selectByPrimaryKey(@Param("id") Long id, @Param("senderId") Long senderId, @Param("cid") Long cid, @Param("messageId") Long messageId);

    int updateByExampleSelective(@Param("record") PrivateMessageEntity record, @Param("example") PrivateMessageEntityExample example);

    int updateByExample(@Param("record") PrivateMessageEntity record, @Param("example") PrivateMessageEntityExample example);

    int updateByPrimaryKeySelective(PrivateMessageEntity record);

    int updateByPrimaryKey(PrivateMessageEntity record);
}